﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>SituationRuleList</title>
    <link href="../../Scripts/PageCreater/Css/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <p>
        @Html.ActionLink("新建规则", "CreateRlueIndex")
    </p>
    <table class="blueTable" style="width:90%">
        <tr class="blueTableTitle">
            <th>
                类型
            </th>
            <th>
                违纪情况
            </th>
            <th>
                扣分方式
            </th>
            <th>
                扣取分数
            </th>
            <th>
                操作
            </th>
            <th>
            </th>
        </tr>
        @foreach (var item in (List<string[]>)TempData["SituationRuleList"])
        {
            <tr>
                <td>
                    @item[0]
                </td>
                <td>
                @foreach (string str in item[1].Split(','))
                {
                    @str <br /> 
                }
                    
                </td>
                <td>
                    @foreach (string str in item[2].Split(','))
                    {
                    @str <br /> 
                    }
                </td>
                <td>
                   @foreach (string str in item[3].Split(','))
                   {
                    @str <br /> 
                   }
                </td>
                <td>
                    @Html.ActionLink("修改", "Edit") |
                    @Html.ActionLink("删除", "Delete", new { id=item[4]})
                </td>
            </tr>
        }
    </table>
</body>
</html>
